package cn.datawin.bms.modules.provider.service.impl;

import cn.datawin.bms.modules.provider.mapper.ProvApiProgramTemplateMapper;
import cn.datawin.bms.modules.provider.service.ProvApiProgramTemplateService;
import cn.datawin.bms.provider.entity.ProvApiProgramTemplateEntity;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 上游供应商连接程序参数模板表
 *
 * @author datawin-sms
 * @date 2025-08-20 16:35:32
 */
@Service
public class ProvApiProgramTemplateServiceImpl extends ServiceImpl<ProvApiProgramTemplateMapper, ProvApiProgramTemplateEntity> implements ProvApiProgramTemplateService {
	@Override
	public List<ProvApiProgramTemplateEntity> getListByApiProgramId(Long apiProgramId) {
		LambdaQueryWrapper<ProvApiProgramTemplateEntity> wrapper = Wrappers.lambdaQuery();
		wrapper.eq(ProvApiProgramTemplateEntity::getApiProgramId, apiProgramId);
		return baseMapper.selectList(wrapper);
	}
}
